package com.rz.htk.postal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rz.core.common.model.PageEntity;

import java.time.LocalDateTime;

/**
 * @ClassName ExpressCode
 * @Description 快递单号
 * @Author maweiyue
 * @Date 2019/4/11 14:33
 */
@TableName(value = "sys_express_code")
public class ExpressCode extends PageEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 产品编号 */
    private String prdCode;

    /** 快递类型 */
    private String expressType;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT-8")
    private LocalDateTime crteTime;

    /** 创建者 */
    private Integer crteMngId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT-8")
    private LocalDateTime updtTime;

    /** 创建者 */
    private Integer updtMngId;

    /** 当前快递单号数量 */
    @TableField(exist = false)
    private long codeCount;

    /** 产品名称 */
    @TableField(exist = false)
    private String prdName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPrdCode() {
        return prdCode;
    }

    public void setPrdCode(String prdCode) {
        this.prdCode = prdCode;
    }

    public String getExpressType() {
        return expressType;
    }

    public void setExpressType(String expressType) {
        this.expressType = expressType;
    }

    public LocalDateTime getCrteTime() {
        return crteTime;
    }

    public void setCrteTime(LocalDateTime crteTime) {
        this.crteTime = crteTime;
    }

    public Integer getCrteMngId() {
        return crteMngId;
    }

    public void setCrteMngId(Integer crteMngId) {
        this.crteMngId = crteMngId;
    }

    public LocalDateTime getUpdtTime() {
        return updtTime;
    }

    public void setUpdtTime(LocalDateTime updtTime) {
        this.updtTime = updtTime;
    }

    public Integer getUpdtMngId() {
        return updtMngId;
    }

    public void setUpdtMngId(Integer updtMngId) {
        this.updtMngId = updtMngId;
    }

    public long getCodeCount() {
        return codeCount;
    }

    public void setCodeCount(long codeCount) {
        this.codeCount = codeCount;
    }

    public String getPrdName() {
        return prdName;
    }

    public void setPrdName(String prdName) {
        this.prdName = prdName;
    }
}
